import request from '../utils/request';

// 获取当前用户测试的产品
export function getProduct(data) {
  return request({
    url: '/gameReport/getProduct',
    method: 'POST',
    params: data,
  });
}
// 获取手机版本
export function getVersion(data) {
  return request({
    url: '/gameReport/getVersion',
    method: 'POST',
    params: data,
  });
}
// 获取游戏名称
export function getGameName(data) {
  return request({
    url: '/gameReport/getGameName',
    method: 'POST',
    params: data,
  });
}
// 获取报告
export function getReport(data) {
  return request({
    url: '/gameReport/getReport',
    method: 'POST',
    params: data,
  });
}
// 保存报告
export function saveReport(data) {
  return request({
    url: '/gameReport/saveReport',
    method: 'POST',
    data,
  });
}
// 导出报告
export function exportReport(data) {
  return request({
    url: '/gameReport/export',
    method: 'POST',
    data,
    responseType: 'blob', //定义好返回的数据类型
  });
}
// 根据报告ID获得报告信息
export function getReportInfoById(data) {
  return request({
    url: '/gameReport/report',
    method: 'POST',
    params: data,
  });
}
// 查询报告
export function searchReport(data) {
  return request({
    url: '/gameReport/searchReport',
    method: 'POST',
    params: data,
  });
}
